<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="zyCinemaList" fitColumns="false" title="影院管理" actionUrl="zyCinemaController.do?datagrid&quickName=${name}" idField="id" fit="true" queryMode="group" sortName="name" sortOrder="desc" autoLoadData="false">
			<t:dgCol title="主键"		field="id"  hidden="true"  queryMode="single"  width="120" />
			<t:dgCol title="影院名称"		field="name"  		query="true"	queryMode="single"   width="220" />
			<t:dgCol title="影院推广名称"		field="spreadName"	width="220" />
			<t:dgCol title="地址"			field="address"		width="320" />
			<t:dgCol title="所属省市"		field="territoryName"	query="true"   queryMode="single"	width="120" sortable="false" />
			<t:dgCol title="所属机构"		field="shortname"	width="120" sortable="false"	queryMode="single"	query="true" />
			<t:dgCol title="电话"			field="phone"		width="120" />
			<t:dgCol title="传真"			field="fax"			width="120" />
			<t:dgCol title="是否异常"		field="isNormal"    dictionary="<%=StaticValue.DIC_TRUE_OR_FALSE_NUM %>" width="120" />
			<t:dgCol title="服务状态"		field="isService"	query="true"  queryMode="single" dictionary="<%=StaticValue.DIC_CINEMA_SERVICE %>" width="120" />
			<t:dgCol title="认证联系人"		field="hasAuthUser"	query="true"  queryMode="single" replace="有_1,无_0" width="80" />
			<t:dgCol title="经营方式"		field="business"	dictionary="<%=StaticValue.DIC_BUSINESS_WAY %>"   width="120" />
			<t:dgCol title="是否有整改函" field="rectification" width="80" align="center" query="true" hidden="true" replace="是_1,否_0"/>
			<t:dgCol title="操作" field="opt" width="100" />
			<t:dgDelOpt operationCode="cinemaDel" title="删除" url="zyCinemaController.do?dologicDel&id={id}" />
			<t:dgToolBar operationCode="cinemaAdd" title="录入" icon="icon-add" url="zyCinemaController.do?goAdd" funname="add" width="900" height="350" />
			<t:dgToolBar operationCode="cinemaEdit" title="编辑" icon="icon-edit" url="zyCinemaController.do?goUpdate" funname="update" width="900" height="350" />
			<t:dgToolBar operationCode="cinemaSearch" title="查看" icon="icon-search" url="zyCinemaController.do?goView" funname="goView" width="1000" height="650" />
			<t:dgToolBar operationCode="cinemaPut" title="导入" icon="icon-put"   funname="importCinema" />
		</t:datagrid>
	</div>
</div>
<script type="text/javascript">
$(function(){
	territoryLink("zyCinemaList","territoryName");
});
function goView(title,url,datagridName,width,height){
	var datas = $("#zyCinemaList").datagrid("getSelections");
	if(datas.length != 1){
		tip("请选择一项查看");
		return;
	}
	var id = datas[0].id;
	addOneTab(title,url+"&id="+id,"");
}
function importCinema(){
	createdetailwindow('基础数据导入', 'uploadCinemaController.do?uploadFile',470,150)
}
</script>
